package com.myd.controller;


import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RestController;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;

@Path("hello")
@RestController
public class TestController {

    @GET
    @Path(value = "user/{name}/{pwd}")
    public void run(@PathParam("name")String name, @PathParam("pwd") String pwd){
        System.out.println(name+"--" + pwd);
    }
//    @GET
//    @Path(value = "user")
//    public String han(@QueryParam("userName")String name){
//       return name;
//    }

}
